﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DiscussAreaIndex.aspx.cs"
    Inherits="admin_DiscussAreaSetting_DiscussAreaIndex" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <script type="text/javascript" src="../../js/DiscussTheme.js"></script>
    <link rel="Stylesheet" type="text/css" href="../../Styles/right_style.css" />
    <script type="text/javascript" src="../../Scripts/jquery.ui/js/jquery.js"></script>
    <script type="text/javascript">
        function display() {
            $("#createAreaTable").fadeIn("slow");
            return false;
        }

        function hideTable() {
            $("#createAreaTable").fadeOut("slow");
            return false;
        }
    </script>
    <style type="text/css">
        <!--
        html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
        scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
        -->
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="sub_right_top">
        <div class="hdm_header">
            <div class="tb1_on">
                <h2 class="h2_icon">
                    讨论区管理</h2>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="hdm_footer">
            <div class="fabu_gg_title">
                &nbsp;创建分区</div>
            <div class="new_ggtz">
                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/new_all_but.gif"
                    OnClientClick="return display()" />
            </div>
            <div style="height: 10px;">
            </div>
            <table id="createAreaTable" width="99%" border="1" align="center" cellpadding="0"
                cellspacing="0" bordercolor="#77acd0" style="border-collapse: collapse; display: none;">
                <tr bgcolor="#e4f1fd">
                    <td colspan="2" align="center">
                        创建分区
                    </td>
                </tr>
                <tr>
                    <td width="140">
                        分区名称：
                    </td>
                    <td>
                        <label>
                            <asp:TextBox ID="TxtAreaName" runat="server" Width="372px"></asp:TextBox>
                        </label>
                    </td>
                </tr>
                <tr>
                    <td width="140">
                        验证码：
                    </td>
                    <td>
                        <span class="shared_yz_word">
                            <asp:TextBox ID="TxtValidatorCode" runat="server" Width="370px" Height="21px"></asp:TextBox>
                        </span><span class="shared_yz_img">
                            <asp:Image ID="Image1" runat="server" Height="22px" ImageAlign="AbsMiddle" ImageUrl="../../ValidationCode.aspx"
                                Width="48px" />
                        </span>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button ID="SengBtn" runat="server" CssClass="queding_anniu" OnClientClick="return checkCreateArea('TxtAreaName')"
                            OnClick="SengBtn_Click" />
                        <asp:Button ID="TableClose" runat="server" CssClass="forum_but" OnClientClick="return hideTable()" />
                    </td>
                </tr>
            </table>
            <br />
            <asp:Repeater ID="DataList1" runat="server" OnItemDataBound="DataList1_ItemDataBound">
                <HeaderTemplate>
                    <table width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77acd0"
                        style="border-collapse: collapse;">
                        <tr bgcolor="#e4f1fd">
                            <td width="25%" align="center">
                                最后更新时间
                            </td>
                            <td align="center" style="width: 40%">
                                分区名称
                            </td>
                            <td width="35%" align="center">
                                操作
                            </td>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("DiscussAreaCreateTime") %>'></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="Label6" runat="server" Text='<%# Eval("DiscussAreaName") %>'></asp:Label>
                        </td>
                        <td style="width: 100px; text-align: center;">
                            <asp:LinkButton ID="LbtEdit" runat="server" Font-Underline="false" OnClick="LbtEdit_Click">编辑</asp:LinkButton>
                            <asp:LinkButton ID="LbtDel" runat="server" Font-Underline="false" OnClick="LbtDel_Click">删除</asp:LinkButton>
                            <asp:LinkButton ID="LbtEditP" runat="server" Font-Underline="false" OnClick="LbtEditP_Click">管理</asp:LinkButton>
                            <input id="HidDaId" runat="server" type="hidden" value='<%# Eval("DiscussAreaId") %>' />
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <div style="height: 20px;">
            </div>
        </div>
    </div>
    </form>
</body>
</html>
